<?php self::tpl_display('header');?>
<script type="text/javascript">
//<!CDATA[
$(function(){
    $(".show_image").mouseover(function(){
        $(this).next("div").show();
    });
    $(".show_image").mouseout(function(){
        $(this).next("div").hide();
    });
    
    $('.west').tipsy({gravity: 'w',title:'tips'});
    $('#user_form').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success: function(label){
            label.addClass('right').text('OK!');
        },
        onkeyup: false,
        rules:{
            timezone: "required",
            web_name:"required",
            title:"required"
        },
        messages:{
            timezone:'<?php L('enter_zone')?>',
            web_name:'<?php L('enter_web_name')?>',
            title:'<?php L('enter_title')?>'
        }
    });

});
//]]>
</script>

<div id="rightTop">
  <p><?php L('setting')?></p>
  <ul class="subnav">
    <li><span><?php L('base_information')?></span></li>
    <li><a class="btn1" href="javascript:;"><?php L('email_setting')?></a></li>
    <li><a class="btn1" href="javascript:;"><?php L('captcha_setting')?></a></li>
  </ul>
</div>
<div class="info">
    <form id="user_form" method="post" enctype="multipart/form-data">
    <table class="infoTable">
      <tr>
        <th class="paddingT15"><label for="time_zone"> <?php L('time_zone')?>:</label></th>
        <td class="paddingT15 wordSpacing5">
            <input type="text" name="timezone" id="timezone" class="infoTableInput" value="<?php echo $timezone?>" >
            <img src="<?php echo IMG_PATH?>help.gif" class="west" tips="<?php L('note_for_time_zone')?>" align="middle">
        </td>
      </tr>
      <tr>
        <th class="paddingT15"> <label><?php L('logo')?>:</label></th>
        <td class="paddingT15 wordSpacing5">
            <input class="infoTableFile" type="file" name="logo"/>
          <?php if($logo):?>
          <img class="show_image" src="<?php echo IMG_PATH?>right.gif"   />
          <div style="position:absolute; display:none"><img src="<?php echo site_url();?><?php echo $logo?>" /></div>
          <?php endif;?></td>
      </tr>
    </table>
    <table class="infoTable">
      <tr>
        <th class="paddingT15"><label for="web_name"> <?php L('web_name')?>:</label></th>
        <td class="paddingT15 wordSpacing5">
            <input type="text" name="web_name" class="infoTableInput" value="<?php echo $web_name?>" >
        </td>
      </tr>
      <tr>
        <th class="paddingT15"><label for="title"> <?php L('title')?>:</label></th>
        <td class="paddingT15 wordSpacing5">
            <input type="text" name="title" class="infoTableInput" value="<?php echo $title?>" >
        </td>
      </tr>
      <tr>
        <th class="paddingT15"><label for="description"> <?php L('description')?>:</label></th>
        <td class="paddingT15 wordSpacing5">
            <textarea name="description"><?php echo $description?></textarea>
        </td>
      </tr>
    </table>
    <table>
      <tr>
        <th></th>
        <td class="ptb20"><input id="submitbtn" class="formbtn" type="submit" name="Submit" value="<?php L('submit')?>" />
          <input class="formbtn" type="reset" name="Submit2" value="<?php L('reset')?>" />
        </td>
      </tr>
    </table>
  </form>
</div>
<?php self::tpl_display('footer');?>
